#include "HeartRateView.h"
#include "lvgl/lvgl.h"

// 图片资源
extern "C" {
	LV_IMG_DECLARE(ui_img_heart_rate_png);
}

void HeartRateView::Create(lv_obj_t* body) {
	
	lv_obj_t* img = lv_img_create(body);
	lv_img_set_src(img, &ui_img_heart_rate_png);
	lv_obj_set_size(img, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
	lv_obj_set_align(img, LV_ALIGN_CENTER);
	lv_obj_clear_flag(img, LV_OBJ_FLAG_SCROLLABLE);
}